<?php

namespace App\Module\Admin\Validator;

use App\System\Base\Validator\BaseValidator;

/**
 * 定义验证器类
 * @author huwei
 */
class TestValidator extends BaseValidator
{
    protected $rules = [
        'id'     => 'required|min:4',
        'mobile' => 'mobile'
    ];

    protected $messages = [
        'id.required' => 'id必须有'
    ];

    protected $attributes = [
        'id' => 'bbb'
    ];
}